import request from '@/utils/request'

// 查询首页文章列列表
export function listHome(query) {
    return request({
        url: '/bk/home/list',
        method: 'get',
        params: query
    })
}

// 查询首页文章列详细
export function getHome(articleId) {
    return request({
        url: '/bk/home/' + articleId,
        method: 'get'
    })
}

// 新增首页文章列
export function addHome(data) {
    return request({
        url: '/bk/home',
        method: 'post',
        data: data
    })
}

// 修改首页文章列
export function updateHome(data) {
    return request({
        url: '/bk/home',
        method: 'put',
        data: data
    })
}

// 删除首页文章列
export function delHome(articleId) {
    return request({
        url: '/bk/home/' + articleId,
        method: 'delete'
    })
}
